<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html 
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

	<h:head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		
		<link rel="shortcut icon" href="#{facesContext.externalContext.requestContextPath}/resources/img/arvore.gif" />
		
		<title>#{msg.label_titulo} - #{msg.label_sub_titulo}</title>
		
		<link rel="stylesheet" type="text/css" href="#{facesContext.externalContext.requestContextPath}/resources/css/bootstrap.css" />
		<link rel="stylesheet" type="text/css" href="#{facesContext.externalContext.requestContextPath}/resources/css/estilo.css" />
		<link rel="stylesheet" type="text/css" href="#{facesContext.externalContext.requestContextPath}/resources/css/primefaces.css" />
		
		<script type="text/JavaScript" src="#{facesContext.externalContext.requestContextPath}/resources/js/bootstrap.js"></script>
		<script type="text/JavaScript" src="#{facesContext.externalContext.requestContextPath}/resources/js/bootstrap.min.js"></script>
		
		<ui:insert name="head"/>
	</h:head>

	<h:body>
		<div class="container">
			<h:form prependId="false">
				
				<!-- Titulo -->
				<h1 class="titulo">#{msg.label_titulo} <small>#{msg.label_sistema_sub_titulo}</small></h1>
				
				<!-- Menu -->
				
				<p:menubar>  
				 
				 	<p:menuitem value="#{msg.label_sistema_menu_inicio}" url="#" />
				 
			        <p:submenu label="#{msg.label_sistema_menu_configuracao}">  
			            <p:menuitem value="#{msg.label_sistema_sub_menu_pre_cadastro_cliente}" ajax="false" action="#{preCadastroClienteMB.abrirConsulta()}" />  
			        </p:submenu>  
			  
			  	</p:menubar>
			  	
				<br/>
				
				<div class="panel panel-success">
					
					<div class="panel-heading"><ui:insert name="tituloPagina">Corpo da pagina não encontrado</ui:insert></div>
		  			
		  			<div id="painel" class="panel-body">
			  			
			  			<!-- Mensagem do sistema -->
			  			<p:messages id="messages" autoUpdate="true" closable="true" />
						
						<!-- Corpo da pagina -->
						<ui:insert name="corpo"/>
					</div>
				</div>
			</h:form>
		</div>
	  
	</h:body>
</html>